package robot_admin

import (
	"github.com/gin-gonic/gin"
	"server/src/api"
	"server/src/middleware"
)

type RobotUser struct {
}

func (r *RobotUser) InitRouter(router *gin.RouterGroup) {
	robotAdmin := router.Group("robot_user").Use(middleware.UserIsLogin())
	{
		robotAdmin.GET("robotWeChatLogin", api.RobotAdmin.RobotWeChatLogin)
		robotAdmin.POST("robotUserAudit", api.RobotAdmin.RobotAudit) // 机器人审核
		robotAdmin.POST("sendSystem", api.RobotAdmin.SendSystem)     //是否发送给系统
		robotAdmin.POST("getPuPm", api.RobotAdmin.GetPuPm)           //获取抽水值
		robotAdmin.POST("makePuPm", api.RobotAdmin.MakePuPm)         //设置抽水比例
	}
}
